package com.ktwlsoft.archivemanage.domain.dao.repository.guiBusiness;

import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.JSONObject;
import com.ktwlsoft.archivemanage.payload.guiBusiness.MendListGetDetailsResult;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.guiBusiness.GuiGuidanceMendList;
import org.apache.ibatis.annotations.Param;

/**
 * gui_guidance_mend_list--业务指导整改
 *
 * @author zhuhe on 2020-04-28 17:58:06
 * @version 1.0
 */
@Mapper
public interface IGuiGuidanceMendListMapper {
	
	/**
	 * 查询列表 on 2020-04-28 17:58:06
	 * @param guiGuidanceMendList guiGuidanceMendList
	 * @return List<GuiGuidanceMendList>
	 */
	List<GuiGuidanceMendList> findList(GuiGuidanceMendList guiGuidanceMendList);

	/**
	 * 查询列表 on 2020-04-28 17:58:06
	 * @param jsonObject guiGuidanceMendList
	 * @return List<GuiGuidanceMendList>
	 */
	List<JSONObject> dataFindPage(JSONObject jsonObject);

	/**
	 * 根据id查询信息 on 2020-04-28 17:58:06
	 * @param id id
	 * @return GuiGuidanceMendList
	 */
	GuiGuidanceMendList getById(Long id);

	/**
	  * 查询详情 on 2020/4/29 17:24
	  *
	  * @param id id
	  * @return MendListGetDetailsResult
	  */
	MendListGetDetailsResult getDetails(Long id);

	/**
	 * 根据业务指导ID查询信息 on 2020-04-28 17:58:06
	 * @param guidanceId	业务指导ID
	 * @return GuiGuidanceMendList
	 */
	GuiGuidanceMendList getByGuidanceId(Long guidanceId);

	/**
	 * 根据id删除信息 on 2020-04-28 17:58:06
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);
	
	/**
	 * 根据id集合批量删除信息 on 2020-04-28 17:58:06
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2020-04-28 17:58:06
	 * @param guiGuidanceMendList guiGuidanceMendList
	 * @return int
	 */
    int insert(GuiGuidanceMendList guiGuidanceMendList);

	/**
	 * 批量插入 2020-04-28 17:58:06
	 *
	 * @param list list
	 * @return int
	 */
	int manyInsert(List<GuiGuidanceMendList> list);

	/**
	 * 更新 on 2020-04-28 17:58:06
	 * @param guiGuidanceMendList guiGuidanceMendList
	 * @return int
	 */
    int update(GuiGuidanceMendList guiGuidanceMendList);

	/**
	 * 指导整改未提交提醒 on 2020/4/30 10:17
	 *
	 * @param notifyPeriod 指定时间
	 * @param date 当前时间
	 * @return List<MendList>
	 */
	List<GuiGuidanceMendList> findMendListBefore(@Param("notifyPeriod") Long notifyPeriod, @Param("date") Date date);
}
